package com.rw.map.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.rw.map.model.HeatMapQueryParam;
import com.rw.map.model.ShopFlowQueryParam;
import com.rw.map.model.TrailDetailIncQueryDTO;
import com.rw.map.model.TrailDetailQueryDTO;

/**
 * 
 * @author forest
 *
 */
@Component
@FeignClient(name="snapdata", fallback = NavigateFallback.class)
public interface NavigateFeignClient {
	
	/**
	   * 动线轨迹单日明细数据查询
	 * @param queryDTO
	 * @return
	 */
    @PostMapping("/trail/detail")
    String getTrailDetail(@RequestBody TrailDetailQueryDTO queryDTO);

    /**
             *  动线轨迹增量查询
     * @param queryDTO
     * @return
     */
	@PostMapping("/trail/detail/inc")
    String getTrailDetailInc(@RequestBody TrailDetailIncQueryDTO queryDTO);
	
	
	@PostMapping("/heatMap/count")
    String heatMap(@RequestBody HeatMapQueryParam queryDTO);
	
	
	@PostMapping("/shop/flow/byShopCode")
    String getShopFlow(@RequestBody ShopFlowQueryParam queryDTO);
	
	
}
